import Router from 'koa-router';
import RightsController from "../controller/rightsController";

const router = new Router();

router.prefix('/api/rights');

router
    /**
     * @swagger
     * /api/token/create:
     *   get: 
     *     description: 授权 
     *     tags: [SHOP店铺模块] 
     *     summary: "店铺授权"
     *     parameters:
     *       - name: authCode
     *         in: query
     *         description: 用户授权码
     *         required: true
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .get('/info', RightsController.rightsInfo)
 

export default router;